$OpenBSD: patch-src_calf_buffer_h,v 1.1 2017/05/03 09:46:40 espie Exp $
right, this template never even compiled

Index: src/calf/buffer.h
--- src/calf/buffer.h.orig
+++ src/calf/buffer.h
@@ -153,7 +153,7 @@ void copy_buf(T &dest_buf, const U &src_buf, T scale =
     typedef typename T::data_type data_type;
     data_type *dest = dest_buf.data();
     const data_type *src = src_buf.data();
-    int size = src.size();
+    int size = src->size();
     for (int i=0; i<size; i++) 
         *dest++ = (*src++) * scale + add;
 }
